package com.wanxi.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;
import springfox.documentation.annotations.ApiIgnore;

import java.util.Date;
import java.util.List;
import java.util.Set;

/**
 * @author Chengbo Zhang
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "管理员参数",description = "用于描述请求对象对象")
public class ManagerVO {
    @ApiModelProperty(value = "管理员id",example = "1")
    private Long id;
    @ApiModelProperty(value = "管理员名",example = "zhangsan")
    private String managerName;
    @ApiModelProperty(value = "管理员密码",example = "123456")
    private String password;
    @ApiModelProperty(value = "管理员状态",example = "1")
    private Integer enable;
    @ApiModelProperty(value = "管理员备注",example = "字符串即可")
    private String remark;
    @ApiModelProperty(value = "角色id列表",example = "长整型数组即可")
    private Set<Long> roleIds;
    @ApiModelProperty(value = "修改密码时，管理员的初始密码")
    private String oldPassword;
    @ApiModelProperty(value = "修改密码时，管理员的新密码")
    private String newPassword;
    @ApiModelProperty(value = "登录时验证码",example = "4位字符")
    private String code;
    private String vCode;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "模糊查询时，搜索管理员的时间",example = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
}
